Adwaita: list row hover color
authorLapo Calamandrei <calamandrei@gmail.com>
Thu, 16 Oct 2014 12:22:20 +0000 (14:22 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Thu, 16 Oct 2014 12:23:24 +0000 (14:23 +0200)
Now it's based of fg color, so the list row gets darker on the
bright variant and brighter on the dark variant, similarly to what
we do for spinbutton buttons.

gtk/resources/theme/Adwaita/_common.scss
gtk/resources/theme/Adwaita/gtk-contained-dark.css
gtk/resources/theme/Adwaita/gtk-contained.css

index 2d8a5fb847b34870c1d4fbe0452f8be1db2941f3..030781f49a923c78f6c53b7c4e42b0644ea9ff0d 100644 (file)
@@ -2421,7 +2421,7 @@ GtkScrolledWindow {
   border-radius: 0;   // and no rounded corners
   box-shadow: none;   // and no box-shadow
   &:hover {
-    background-color: mix(black, $base_color, 5%);
+    background-color: mix($fg_color, $base_color, 5%);
   }
   &:active {
     box-shadow: inset 0 2px 2px -2px transparentize(black,0.8);
@@ -2429,7 +2429,7 @@ GtkScrolledWindow {
   &:selected {
     &:active { box-shadow: inset 0 2px 3px -1px transparentize(black,0.5); }
     &:hover {
-      background-color: mix(black, $selected_bg_color, 10%);
+      background-color: mix($fg_color, $selected_bg_color, 10%);
     }
     &:backdrop { background-color: $selected_bg_color; }
   }
index 244906776e05fe4234757224d0acb357c3c7a07a..7f103833ec01306f87d55338e1caf50649491b6d 100644 (file)
@@ -3556,13 +3556,13 @@ GtkCalendar.header .list-row.button.titlebutton {
   border-radius: 0;
   box-shadow: none; }
   .list-row.button:hover {
-    background-color: #262626; }
+    background-color: #323232; }
   .list-row.button:active {
     box-shadow: inset 0 2px 2px -2px rgba(0, 0, 0, 0.2); }
   .list-row.button:selected:active {
     box-shadow: inset 0 2px 3px -1px rgba(0, 0, 0, 0.5); }
   .list-row.button:selected:hover {
-    background-color: #1d538c; }
+    background-color: #356ba4; }
   .list-row.button:selected:backdrop {
     background-color: #215d9c; }
 
index c52a29cb1404a736933b2cdc6c4eb8fe4b2429e0..edb473e40dd93f023949e53c97a9259e76206e58 100644 (file)
@@ -3709,13 +3709,13 @@ GtkCalendar.header .list-row.button.titlebutton {
   border-radius: 0;
   box-shadow: none; }
   .list-row.button:hover {
-    background-color: #f2f2f2; }
+    background-color: #f4f4f4; }
   .list-row.button:active {
     box-shadow: inset 0 2px 2px -2px rgba(0, 0, 0, 0.2); }
   .list-row.button:selected:active {
     box-shadow: inset 0 2px 3px -1px rgba(0, 0, 0, 0.5); }
   .list-row.button:selected:hover {
-    background-color: #4281c3; }
+    background-color: #4786c8; }
   .list-row.button:selected:backdrop {
     background-color: #4a90d9; }